public class Director {
    private Builder builder;

    public Director(Builder builder) {
        this.builder = builder;
    }

    public Product construct() {
        // 构建顺序：建造水泥->地基->楼顶
        builder.buildCement();
        builder.buildGround();
        builder.buildRoof();

        return builder.buildProduct();
    }

}
